package cn.rcth.base.mapper;

import cn.rcth.base.domain.VerifyCode;
import java.util.List;

public interface VerifyCodeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(VerifyCode record);

    VerifyCode selectByPrimaryKey(Long id);

    List<VerifyCode> selectAll();

    int updateByPrimaryKey(VerifyCode record);

    /**
     * 通过手机号查询验证码
     * @param phone
     * @return
     */
    VerifyCode getCodeByPhone(String phone);
}